import request from '@/utils/request'

// 查询规则附列表
export function listQualityRulesItem(query) {
  return request({
    url: '/system/qualityRulesItem/list',
    method: 'post',
    data: query
  })
}

// 查询规则附详细
export function getQualityRulesItem(id) {
  return request({
    url: '/system/qualityRulesItem/' + id,
    method: 'get'
  })
}

// 新增规则附
export function addQualityRulesItem(data) {
  return request({
    url: '/system/qualityRulesItem',
    method: 'post',
    data: data
  })
}

// 修改规则附
export function updateQualityRulesItem(data) {
  return request({
    url: '/system/qualityRulesItem',
    method: 'put',
    data: data
  })
}

// 删除规则附
export function delQualityRulesItem(id) {
  return request({
    url: '/system/qualityRulesItem/' + id,
    method: 'delete'
  })
}
